Package/test tarballs in a temporary location
authorAlex Crichton <alex@alexcrichton.com>
Mon, 30 Nov 2015 19:29:15 +0000 (11:29 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Mon, 30 Nov 2015 19:34:02 +0000 (11:34 -0800)
commite8afad4163057db38c2bccc6c36c2caac72b4f81
tree73ae95a3f2f339830311576b0174ca4f94802fe9
parentb6cc27afd54b239d56cbd7b536a409af15908dff
Package/test tarballs in a temporary location

Right now a `Bomb` struct is used to attempt to ensure that broken tarballs
don't escape, but this unfortunately doesn't work for when Cargo is terminated
via other means such as ctrl-c or abnormal termination. Instead the tarball is
constructed in a temporary location and then only moved to the final location
once all checks pass.

Closes #2173
cc #2177
src/cargo/ops/cargo_package.rs